// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.documentCirculation.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fowo.api.documentCirculation.entity.DataTaskBranch;
import com.fowo.api.documentCirculation.model.DataTaskBranchItemVo;
import com.fowo.api.documentCirculation.model.DataTaskBranchSearchParamPo;
import com.fowo.api.documentCirculation.model.DataTaskBranchVo;
import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 数据事务分支 Mapper
 * @author yl_ls
 */
@Mapper
public interface DataTaskBranchMapper extends BaseMapper<DataTaskBranch> {
  Page<DataTaskBranchItemVo> pageSearch(
    @Param("page") Page page,
    @Param("search") DataTaskBranchSearchParamPo search
  );
  List<DataTaskBranchItemVo> search(
    @Param("search") DataTaskBranchSearchParamPo search
  );
  Date searchLastUpdateTime(
    @Param("search") DataTaskBranchSearchParamPo search
  );
  /**
   * 搜索满足条件的所有记录的编号列表
   * @param search 搜索参数
   * @return 编号列表
   */
  List<Long> searchIds(@Param("search") DataTaskBranchSearchParamPo search);
  Long getIdByFromTable(@Param("fromTable") String fromTable);

  List<Long> getIdsByFromTable(@Param("list") List<String> list);

  String getFromTableById(@Param("id") Long id);

  List<String> getFromTableByIds(@Param("ids") List<Long> ids);
  DataTaskBranchVo selectVoById(@Param("id") Long id);
}
